package com.ruoyi.system.domain.vo.productType;

import com.ruoyi.system.domain.ProductType;
import lombok.Data;

import java.util.List;

/**
 * @ClassName : listVo
 * @Description : listVo
 * @Author :
 * @Date: 2023-01-25 17:03
 */

@Data
public class ProductTypeListVo extends ProductType {
    private String stateStr;
    private List<ProductType> children;

    public String getStateStr() {
        switch (String.valueOf(super.getStatus())){
            case "0":
                return "正常";
            case "1":
                return "停用";
        }
        return "";
    }
}
